/*
 * MorseEncoder.h
 *
 *  Created on: Jun 30, 2012
 *      Author: nam20485
 */

#ifndef MORSEENCODER_H_
#define MORSEENCODER_H_

#include "Arduino.h"
#include "LibMorse.h"

class MorseEncoder
{
public:
	MorseEncoder(const String& strMessage);
	virtual ~MorseEncoder();

	// get the encoding (encoding is evaluated lazily)
	const Morse::SYMBOL* Encoding();

	void LinkedListTest();

protected:
	const Morse::SYMBOL* _aEncoding;
	const String _strMessage;

	const Morse::SYMBOL* Encode(const String& str);
	const Morse::SYMBOL* Encode(const char c);
};

#endif /* MORSEENCODER_H_ */
